Skip to content

增加数据库自动回归测试,区分 SQL NULL 和空字节串。 - #21

Open
bunnier wants to merge 2 commits into
mainfrom
codex/github-regression-tests
Open

bunnier wants to merge 2 commits into
mainfrom
codex/github-regression-tests

Conversation

@bunnier

@bunnier bunnier commented Dec 2, 2026

Copy link
Copy Markdown
Owner

修复二进制列为 SQL NULL 时 Get 返回带类型的 []byte(nil) 的问题。新增回归用例在同一结果集中读取空 BLOB 和 NULL,分别断言得到 []byte{} 和 nil。

GitHub Actions 使用 MySQL 8.4 和 SQL Server 2022 初始化测试表,运行构建、go vet 和全量竞态测试。mysql 与 wrap 共用事务测试数据,因此按包串行运行。CI 中数据库连接失败会直接报错。

本地已通过 go build ./...、go vet ./...、actionlint 以及根包、sqlen、sqlite 和 internal/named2qm 的竞态测试。

@bunnier
bunnier force-pushed the codex/github-regression-tests branch from d55b824 to 2ad82d5 Compare December 2, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant